import { Camera } from "../camera";
import { Background } from "../background";
import { App } from "leafer-ui";

export class Render {
  constructor(options) {
    const { view } = options;
    const app = new App({ view });
    console.log(view);
    const camera = new Camera({
      x: 0,
      y: 0,
      width: view.scrollWidth,
      height: view.scrollHeight
    });
    const background = new Background({ camera });
    app.add(background.getCore());
    // this.scene = scene;
  }
}
